package entity;

public class Admin {
    private Integer adid;

    private String adminName;

    private String adminPassword;

    private String email;

    private String registertime;

    public Admin() {
    }

    public Admin(String adminName, String adminPassword, String email, String registertime) {
        this.adminName = adminName;
        this.adminPassword = adminPassword;
        this.email = email;
        this.registertime = registertime;
    }

    public Integer getAdid() {
        return adid;
    }

    public void setAdid(Integer adid) {
        this.adid = adid;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName == null ? null : adminName.trim();
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword == null ? null : adminPassword.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getRegistertime() {
        return registertime;
    }

    public void setRegistertime(String registertime) {
        this.registertime = registertime == null ? null : registertime.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adid=").append(adid);
        sb.append(", adminName=").append(adminName);
        sb.append(", adminPassword=").append(adminPassword);
        sb.append(", email=").append(email);
        sb.append(", registertime=").append(registertime);
        sb.append("]");
        return sb.toString();
    }
}